<template>
	<div class="job_item" :class="isedite?'slcac':''" @click="godetail()">
		<div class="top flex">
			<img src="../../static/image/headpic.png" alt="" class="headpic">
			<div class="name_age">
				<p class="name">汤成龙</p>
				<p class="age">24岁</p>
			</div>
			<div class="sex flex"> <img src="../../static/image/nan.png" alt="" class="sexicon">男</div>
		</div>
		<div class="seller">期望薪资10K-15K</div>
		<div class="jy"><span>3年工作经验</span> <span class="xueli">本科</span></div>
		<img src="../../static/image/select.png" alt="" class="slcright" v-show="isedite">

	</div>
</template>

<script>
	export default {
		props: {

			item: {
				type: Object,
				default: {}
			},
			isedite: {
				type: Boolean,
				default: false
			},
			type: {
				type: Number
			}
		},
		data() {
			return {

			};
		},
		methods: {
			godetail() {
				var d = new Date(); //定义时间戳
				this.$router.push({
					path: '/jobwantDetail?type=' + this.type,
					query: {
						t: d.getTime()
					},
				})
			}
		}
	}
</script>

<style lang="less" scoped="scoped">
	.slcac {
		border: 1px solid #FF4422;
	}

	.job_item {
		width: 48%;
		background-color: #FFFFFF;
		padding: 40px;
		box-sizing: border-box;
		margin-bottom: 40px;
		position: relative;

		.slcright {
			width: 30px;
			height: 20px;
			position: absolute;
			top: -1px;
			left: -1px;
		}

		.top {
			align-items: flex-start;

			.headpic {
				width: 50px;
				height: 50px;
			}

			.name_age {
				margin-left: 10px;

				.name {
					color: #333333;
					font-size: 20px;
				}

				.age {
					color: #999999;
					font-size: 16px;
				}
			}

			.sex {
				margin-left: 20px;
				color: #226FFF;
				font-size: 16px;
				margin-top: 3px;

				.sexicon {
					width: 16px;
					height: 16px;
					margin-right: 6px;
				}
			}
		}

		.seller {
			margin: 10px 0px 20px;
			color: #333333;
			font-size: 16px;
		}

		.jy {
			color: #999999;
			font-size: 16px;
			align-items: center;
			display: flex;

			.xueli {
				&:before {
					// padding-left: 20px;
					// box-sizing: border-box;
					// margin-left: 20px;
					content: "";
					margin-left: 15px;
					padding-left: 15px;
					border-left: 1px solid #999999;
					height: 16px;
					display: inline-block;
					vertical-align: middle;
				}

			}
		}

	}
</style>
